check for allowed NULL inside g_return_if_fail() statements
authorBenjamin Otte <otte@gnome.org>
Tue, 23 Jun 2009 07:26:23 +0000 (09:26 +0200)
committerBenjamin Otte <otte@gnome.org>
Sat, 27 Jun 2009 09:31:13 +0000 (11:31 +0200)
commit6c18c25adbf61a5291f53b2e3dc11ba4e46b5b21
tree2366a24c8447dc0896e43e03f9bc539c2344f819
parentadf8db68c7ea0415f418fb4276913446569be3d3
check for allowed NULL inside g_return_if_fail() statements

This patch replaces

if (foo != NULL)
  g_return_if_fail (GTK_IS_FOO (foo));

with

g_return_if_fail (foo == NULL || GTK_IS_FOO (foo));
gtk/gtktreeview.c